<?php

class AdminController extends AppController {
    var $uses = array();
    var $admin = true;
    var $title = "Panel administracyjny";

    public function __construct() {
        parent::__construct();
    }

    public function index() {
        
    }
    
    public function admin_phpinfo() {
        if(Configure::read('debug') > 0) {
            $this->layout = null;
            $this->autoRender = false;
            phpinfo();
        }
        else {
            $this->render('phpinfo_disabled');
        }
    }

}
?>
